package com.haircut.project.dao.group;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.haircut.project.model.group.ProjectGroupConfigRel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProjectGroupConfigRelMapper extends BaseMapper<ProjectGroupConfigRel> {
    /**
     * 批量新增
     * @param list
     */
    void batcInsert(List<ProjectGroupConfigRel> list);

    /**
     * 根据分组id和配置id列表查询配置数据
     * @param groupId
     * @param configIdList
     * @return
     */
    List<ProjectGroupConfigRel> findByGroupIdAndConfigIdList(@Param("groupId") String groupId, @Param("configIdList") List<String> configIdList);
}
